package com.globallogic.jbtask3;

import java.util.Scanner;

public class Anagram {
    
    private static final String STR_IS_ANAGRAM = "These two strings is anagram";
    private static final String STR_ISNOT_ANAGRAM = "These two strings is not anagram";

    public static void main(String[] args) {
       
        String string1 = "";
        String string2 = "";
        Scanner input = new Scanner(System.in);
        
        Anagram anagramApp = new Anagram();        

        System.out.println("Enter two lines, please");
        System.out.println("");

        string1 = input.nextLine();
        string2 = input.nextLine();

        input.close();

        if (AnagramUtil.isAnagram(string1, string2)) {

            System.out.println(STR_IS_ANAGRAM); 

        }
        else {

            System.out.println(STR_ISNOT_ANAGRAM); 
 
        } 
    
    }

}